package com.woniuxy.business.service.impl;

import com.woniuxy.business.mapper.ProcessInfoMapper;
import com.woniuxy.business.service.ProcessInfoService;
import com.woniuxy.entity.ProcessInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 流程进度信息的接口实现
 */
@Service
public class ProcessInfoServiceImpl implements ProcessInfoService {
    @Resource
    private ProcessInfoMapper processInfoMapper;

    //添加
    @Override
    public void addProcess(ProcessInfo processInfo) {
        processInfoMapper.insertProcess(processInfo);
    }

    //根据id查找
    @Override
    public ProcessInfo getProcessInfoById(Integer id) {
        return processInfoMapper.selectProcessInfoById(id);
    }
}
